<!DOCTYPE HTML>
<html lang="en" >
    
    <head>
        
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>列表表格 | html5中文文档</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="../../gitbook/style.css">
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-search/search.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    <link rel="next" href="../../md/html/lesson4.html" />
    
    
    <link rel="prev" href="../../md/html/lesson2.html" />
    

        
    </head>
    <body>
        
        
    <div class="book"
        data-level="1.5"
        data-chapter-title="列表表格"
        data-filepath="md/html/lesson3.md"
        data-basepath="../.."
        data-revision="Fri Dec 14 2018 11:56:27 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="../../index.html">
                
                        <i class="fa fa-check"></i>
                        
                        Introduction
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="md/html/html.html">
            
                
                    <a href="../../md/html/html.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        html5的介绍
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1" data-path="md/html/hbuilder的使用.html">
            
                
                    <a href="../../md/html/hbuilder的使用.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        开发工具的使用
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="md/html/lesson0.html">
            
                
                    <a href="../../md/html/lesson0.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.</b>
                        
                        html5的介绍和结构分析
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="md/html/lesson1.html">
            
                
                    <a href="../../md/html/lesson1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.</b>
                        
                        常用标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="md/html/lesson2.html">
            
                
                    <a href="../../md/html/lesson2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.</b>
                        
                        图片音频视频
                    </a>
            
            
        </li>
    
        <li class="chapter active" data-level="1.5" data-path="md/html/lesson3.html">
            
                
                    <a href="../../md/html/lesson3.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.5.</b>
                        
                        列表表格
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="md/html/lesson4.html">
            
                
                    <a href="../../md/html/lesson4.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.6.</b>
                        
                        表单元素
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="md/html/lesson5.html">
            
                
                    <a href="../../md/html/lesson5.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.7.</b>
                        
                        h5新增特性
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="md/html/lesson6.html">
            
                
                    <a href="../../md/html/lesson6.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.8.</b>
                        
                        h5新增特性
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="md/html/lesson7.html">
            
                
                    <a href="../../md/html/lesson7.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.9.</b>
                        
                        h5新增特性
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2" data-path="md/echarts/lesson1.html">
            
                
                    <a href="../../md/echarts/lesson1.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        echarts的介绍
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1" data-path="md/echarts/lesson2.html">
            
                
                    <a href="../../md/echarts/lesson2.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.</b>
                        
                        echarts快速上手
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="md/echarts/lesson3.html">
            
                
                    <a href="../../md/echarts/lesson3.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.</b>
                        
                        echarts常用组件
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="md/echarts/lesson4.html">
            
                
                    <a href="../../md/echarts/lesson4.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.</b>
                        
                        echarts常用图表
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../../" >html5中文文档</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h1 id="&#x7B2C;&#x56DB;&#x8282;&#x8BFE;">&#x7B2C;&#x56DB;&#x8282;&#x8BFE;</h1>
<h2 id="&#x5217;&#x8868;uloldl&#x5143;&#x7D20;">&#x5217;&#x8868;ul,ol,dl&#x5143;&#x7D20;</h2>
<h3 id="&#x65E0;&#x5E8F;&#x5217;&#x8868;ul">&#x65E0;&#x5E8F;&#x5217;&#x8868;ul</h3>
<p>HTML &lt;ul&gt; &#x5143;&#x7D20; ( &#x6216; HTML &#x65E0;&#x5E8F;&#x5217;&#x8868;&#x5143;&#x7D20;&#xFF09; &#x4EE3;&#x8868;&#x591A;&#x9879;&#x7684;&#x65E0;&#x5E8F;&#x5217;&#x8868;&#xFF0C;&#x5373;&#x65E0;&#x6570;&#x503C;&#x6392;&#x5E8F;&#x9879;&#x7684;&#x96C6;&#x5408;&#xFF0C;&#x4E14;&#x5B83;&#x4EEC;&#x5728;&#x5217;&#x8868;&#x4E2D;&#x7684;&#x987A;&#x5E8F;&#x662F;&#x6CA1;&#x6709;&#x610F;&#x4E49;&#x7684;&#x3002;&#x901A;&#x5E38;&#x60C5;&#x51B5;&#x4E0B;&#xFF0C;&#x65E0;&#x5E8F;&#x5217;&#x8868;&#x9879;&#x7684;&#x5934;&#x90E8;&#x53EF;&#x4EE5;&#x662F;&#x51E0;&#x79CD;&#x5F62;&#x5F0F;&#xFF0C;&#x5982;&#x4E00;&#x4E2A;&#x70B9;&#xFF0C;&#x4E00;&#x4E2A;&#x5706;&#x5F62;&#x6216;&#x65B9;&#x5F62;&#x3002;&#x5934;&#x90E8;&#x7684;&#x98CE;&#x683C;&#x5E76;&#x4E0D;&#x662F;&#x5728;&#x9875;&#x9762;&#x7684;HTML&#x63CF;&#x8FF0;&#x5B9A;&#x4E49;, &#x4F46;&#x5728;&#x5176;&#x76F8;&#x5173;&#x7684;CSS &#x53EF;&#x4EE5;&#x7528; list-style-type &#x5C5E;&#x6027;&#x3002;
ul&#x6807;&#x7B7E;&#x9700;&#x8981;&#x548C;li&#x6807;&#x7B7E;&#x7ED3;&#x5408;&#x4F7F;&#x7528;</p>
<pre><code class="lang-html"><span class="hljs-doctype">&lt;!DOCTYPE html&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-title">html</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-title">head</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">meta</span> <span class="hljs-attribute">charset</span>=<span class="hljs-value">&quot;UTF-8&quot;</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">title</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-title">title</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-title">head</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-title">body</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">ul</span> <span class="hljs-attribute">type</span>=<span class="hljs-value">&quot;disc&quot;</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-title">li</span>&gt;</span>&#x7B2C;1&#x5143;&#x7D20;<span class="hljs-tag">&lt;/<span class="hljs-title">li</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-title">li</span>&gt;</span>&#x7B2C;2&#x5143;&#x7D20;<span class="hljs-tag">&lt;/<span class="hljs-title">li</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-title">li</span>&gt;</span>
                &#x7B2C;3&#x5143;&#x7D20;
                <span class="hljs-tag">&lt;<span class="hljs-title">ul</span>&gt;</span>
                    <span class="hljs-tag">&lt;<span class="hljs-title">li</span>&gt;</span>&#x4E8C;&#x7EA7;1<span class="hljs-tag">&lt;/<span class="hljs-title">li</span>&gt;</span>
                    <span class="hljs-tag">&lt;<span class="hljs-title">li</span>&gt;</span>&#x4E8C;&#x7EA7;2<span class="hljs-tag">&lt;/<span class="hljs-title">li</span>&gt;</span>
                    <span class="hljs-tag">&lt;<span class="hljs-title">li</span>&gt;</span>&#x4E8C;&#x7EA7;3<span class="hljs-tag">&lt;/<span class="hljs-title">li</span>&gt;</span>
                <span class="hljs-tag">&lt;/<span class="hljs-title">ul</span>&gt;</span>
            <span class="hljs-tag">&lt;/<span class="hljs-title">li</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-title">li</span>&gt;</span>&#x7B2C;4&#x5143;&#x7D20;<span class="hljs-tag">&lt;/<span class="hljs-title">li</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-title">li</span>&gt;</span>&#x7B2C;5&#x5143;&#x7D20;<span class="hljs-tag">&lt;/<span class="hljs-title">li</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-title">ul</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-title">body</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-title">html</span>&gt;</span>

&#x5C5E;&#x6027;&#x8BF4;&#x660E;&#xFF1A;
type
&#x7528;&#x4E8E;&#x8BBE;&#x7F6E;&#x5217;&#x8868;&#x7684;&#x7740;&#x91CD;&#x53F7;&#x6837;&#x5F0F;
    circle,    &#x7A7A;&#x5FC3;&#x5706;
    disc,    &#x5B9E;&#x5FC3;&#x5706;
    square. &#x65B9;&#x5757;
</code></pre>
<p>&#x6D4F;&#x89C8;&#x5668;&#x8FD0;&#x884C;&#x6548;&#x679C;&#x5982;&#x4E0B;&#xFF1A;</p>
<p><img src="../../static/images/html/example/example13.png" alt="&#x6362;&#x884C;&#x7B26;&#x8FD0;&#x884C;&#x6548;&#x679C;"></p>
<h3 id="&#x6709;&#x5E8F;&#x5217;&#x8868;ol">&#x6709;&#x5E8F;&#x5217;&#x8868;ol</h3>
<p>HTML &lt;ol&gt; &#x5143;&#x7D20; &#x8868;&#x793A;&#x591A;&#x4E2A;&#x6709;&#x5E8F;&#x5217;&#x8868;&#x9879;&#xFF0C;&#x901A;&#x5E38;&#x6E32;&#x67D3;&#x4E3A;&#x6709;&#x5E26;&#x7F16;&#x53F7;&#x7684;&#x5217;&#x8868;&#x3002;</p>
<pre><code class="lang-html"><span class="hljs-doctype">&lt;!DOCTYPE html&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-title">html</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-title">head</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">meta</span> <span class="hljs-attribute">charset</span>=<span class="hljs-value">&quot;UTF-8&quot;</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">title</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-title">title</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-title">head</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-title">body</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">ol</span> <span class="hljs-attribute">type</span>=<span class="hljs-value">&quot;1&quot;</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-title">li</span>&gt;</span>&#x7B2C;1&#x5143;&#x7D20;<span class="hljs-tag">&lt;/<span class="hljs-title">li</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-title">li</span>&gt;</span>&#x7B2C;2&#x5143;&#x7D20;<span class="hljs-tag">&lt;/<span class="hljs-title">li</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-title">li</span>&gt;</span>
                &#x7B2C;3&#x5143;&#x7D20;
                <span class="hljs-tag">&lt;<span class="hljs-title">ol</span>&gt;</span>
                    <span class="hljs-tag">&lt;<span class="hljs-title">li</span>&gt;</span>&#x4E8C;&#x7EA7;1<span class="hljs-tag">&lt;/<span class="hljs-title">li</span>&gt;</span>
                    <span class="hljs-tag">&lt;<span class="hljs-title">li</span>&gt;</span>&#x4E8C;&#x7EA7;2<span class="hljs-tag">&lt;/<span class="hljs-title">li</span>&gt;</span>
                    <span class="hljs-tag">&lt;<span class="hljs-title">li</span>&gt;</span>&#x4E8C;&#x7EA7;3<span class="hljs-tag">&lt;/<span class="hljs-title">li</span>&gt;</span>
                <span class="hljs-tag">&lt;/<span class="hljs-title">ol</span>&gt;</span>
            <span class="hljs-tag">&lt;/<span class="hljs-title">li</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-title">li</span>&gt;</span>&#x7B2C;4&#x5143;&#x7D20;<span class="hljs-tag">&lt;/<span class="hljs-title">li</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-title">li</span>&gt;</span>&#x7B2C;5&#x5143;&#x7D20;<span class="hljs-tag">&lt;/<span class="hljs-title">li</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-title">ol</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-title">body</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-title">html</span>&gt;</span>

&#x5C5E;&#x6027;&#x8BF4;&#x660E;
type
&#x6307;&#x793A;&#x7F16;&#x53F7;&#x7C7B;&#x578B;

    &apos;a&apos; &#x8868;&#x793A;&#x5C0F;&#x5199;&#x5B57;&#x6BCD;&#x7F16;&#x53F7;&#xFF1B;
    &apos;A&apos; &#x8868;&#x793A;&#x5927;&#x5199;&#x5B57;&#x6BCD;&#x7F16;&#x53F7;&#xFF1B;
    &apos;i&apos; &#x8868;&#x793A;&#x5C0F;&#x5199;&#x7F57;&#x9A6C;&#x6570;&#x5B57;&#x7F16;&#x53F7;&#xFF1B;
    &apos;I&apos; &#x8868;&#x793A;&#x5927;&#x5199;&#x7F57;&#x9A6C;&#x6570;&#x5B57;&#x7F16;&#x53F7;&#xFF1B;
    &apos;1&apos; &#x8868;&#x793A;&#x6570;&#x5B57;&#x7F16;&#x53F7;&#xFF08;&#x9ED8;&#x8BA4;&#x503C;&#xFF09;&#x3002;
</code></pre>
<p>&#x6D4F;&#x89C8;&#x5668;&#x8FD0;&#x884C;&#x6548;&#x679C;&#x5982;&#x4E0B;&#xFF1A;</p>
<p><img src="../../static/images/html/example/example14.png" alt="&#x6362;&#x884C;&#x7B26;&#x8FD0;&#x884C;&#x6548;&#x679C;"></p>
<h3 id="&#x63CF;&#x8FF0;&#x5217;&#x8868;&#x5143;&#x7D20;dl">&#x63CF;&#x8FF0;&#x5217;&#x8868;&#x5143;&#x7D20;dl</h3>
<p>HTML <dl> &#x5143;&#x7D20; &#xFF08;&#x6216; HTML &#x63CF;&#x8FF0;&#x5217;&#x8868;&#x5143;&#x7D20;&#xFF09;&#x662F;&#x4E00;&#x4E2A;&#x5305;&#x542B;&#x672F;&#x8BED;&#x5B9A;&#x4E49;&#x4EE5;&#x53CA;&#x63CF;&#x8FF0;&#x7684;&#x5217;&#x8868;&#xFF0C;&#x901A;&#x5E38;&#x7528;&#x4E8E;&#x5C55;&#x793A;&#x8BCD;&#x6C47;&#x8868;&#x6216;&#x8005;&#x5143;&#x6570;&#x636E; (&#x952E;-&#x503C;&#x5BF9;&#x5217;&#x8868;)&#x3002;</dl></p>
<pre><code class="lang-html"><span class="hljs-doctype">&lt;!DOCTYPE html&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-title">html</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-title">head</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">meta</span> <span class="hljs-attribute">charset</span>=<span class="hljs-value">&quot;UTF-8&quot;</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">title</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-title">title</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-title">head</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-title">body</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">dl</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-title">dt</span>&gt;</span>html<span class="hljs-tag">&lt;/<span class="hljs-title">dt</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-title">dd</span>&gt;</span>html&#x662F;&#x8D85;&#x6587;&#x672C;&#x6807;&#x8BB0;&#x8BED;&#x8A00;<span class="hljs-tag">&lt;/<span class="hljs-title">dd</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-title">dt</span>&gt;</span>css<span class="hljs-tag">&lt;/<span class="hljs-title">dt</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-title">dd</span>&gt;</span>css&#x662F;&#x5C42;&#x53E0;&#x6837;&#x5F0F;&#x8868;<span class="hljs-tag">&lt;/<span class="hljs-title">dd</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-title">dl</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-title">body</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-title">html</span>&gt;</span>
</code></pre>
<p>&#x6D4F;&#x89C8;&#x5668;&#x8FD0;&#x884C;&#x6548;&#x679C;&#x5982;&#x4E0B;&#xFF1A;</p>
<p><img src="../../static/images/html/example/example15.png" alt="&#x6362;&#x884C;&#x7B26;&#x8FD0;&#x884C;&#x6548;&#x679C;"></p>
<h2 id="&#x8868;&#x683C;table&#x5143;&#x7D20;">&#x8868;&#x683C;table&#x5143;&#x7D20;</h2>
<p>HTML&#x7684; table &#x5143;&#x7D20;&#x8868;&#x793A;&#x8868;&#x683C;&#x6570;&#x636E; &#x2014; &#x5373;&#x901A;&#x8FC7;&#x4E8C;&#x7EF4;&#x6570;&#x636E;&#x8868;&#x8868;&#x793A;&#x7684;&#x4FE1;&#x606F;&#x3002;</p>
<pre><code class="lang-html"><span class="hljs-doctype">&lt;!DOCTYPE html&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-title">html</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-title">head</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">meta</span> <span class="hljs-attribute">charset</span>=<span class="hljs-value">&quot;UTF-8&quot;</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">title</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-title">title</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-title">head</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-title">body</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">table</span> <span class="hljs-attribute">border</span>=<span class="hljs-value">&quot;1&quot;</span> <span class="hljs-attribute">cellspacing</span>=<span class="hljs-value">&quot;10&quot;</span> <span class="hljs-attribute">cellpadding</span>=<span class="hljs-value">&quot;20&quot;</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-title">tr</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-title">th</span>&gt;</span>Header<span class="hljs-tag">&lt;/<span class="hljs-title">th</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-title">th</span>&gt;</span>Header<span class="hljs-tag">&lt;/<span class="hljs-title">th</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-title">th</span>&gt;</span>Header<span class="hljs-tag">&lt;/<span class="hljs-title">th</span>&gt;</span>
            <span class="hljs-tag">&lt;/<span class="hljs-title">tr</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-title">tr</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-title">td</span>&gt;</span>1<span class="hljs-tag">&lt;/<span class="hljs-title">td</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-title">td</span>&gt;</span>2<span class="hljs-tag">&lt;/<span class="hljs-title">td</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-title">td</span>&gt;</span>3<span class="hljs-tag">&lt;/<span class="hljs-title">td</span>&gt;</span>
            <span class="hljs-tag">&lt;/<span class="hljs-title">tr</span>&gt;</span>
            <span class="hljs-tag">&lt;<span class="hljs-title">tr</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-title">td</span>&gt;</span>4<span class="hljs-tag">&lt;/<span class="hljs-title">td</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-title">td</span>&gt;</span>5<span class="hljs-tag">&lt;/<span class="hljs-title">td</span>&gt;</span>
                <span class="hljs-tag">&lt;<span class="hljs-title">td</span>&gt;</span>6<span class="hljs-tag">&lt;/<span class="hljs-title">td</span>&gt;</span>
            <span class="hljs-tag">&lt;/<span class="hljs-title">tr</span>&gt;</span>
        <span class="hljs-tag">&lt;/<span class="hljs-title">table</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-title">body</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-title">html</span>&gt;</span>

&#x8BF4;&#x660E;&#xFF1A;

&#x8868;&#x683C;(table)
    &#x8868;&#x5934;&#xFF1A;th -&gt; &#x5B57;&#x4F53;&#x9ED8;&#x8BA4;&#x52A0;&#x7C97;&#xFF0C;&#x5185;&#x5BB9;&#x6C34;&#x5E73;&#x5C45;&#x4E2D;.

    &#x8868;&#x683C;&#x7684;&#x5185;&#x5BB9;&#xFF1A;td &#x8868;&#x683C;&#x4E2D;&#x7684;&#x6807;&#x51C6;&#x5355;&#x5143;&#x683C;&#x3002;

&#x5C5E;&#x6027;&#xFF1A;(&#x5199;&#x5728;&#x5F00;&#x5934;&#x6807;&#x7B7E;&#x7684;&#x91CC;&#x9762;&#x7684;&#x5355;&#x8BCD;&#x5C31;&#x53EB;&#x505A;&#x8BE5;&#x5143;&#x7D20;&#x7684;&#x5C5E;&#x6027;)

    border&#xFF1A;&#x8FB9;&#x6846;&#xFF0C;&#x7528;&#x6765;&#x8BBE;&#x7F6E;&#x8868;&#x683C;&#x7684;&#x8FB9;&#x6846;
    cellspacing&#xFF1A;&#x5355;&#x5143;&#x683C;&#x4E4B;&#x95F4;&#x7684;&#x8DDD;&#x79BB;&#xFF08;HTML5 &#x4E0D;&#x652F;&#x6301;&#x3002;&#xFF09;
    cellpadding: &#x5185;&#x5BB9;&#x5230;&#x8FB9;&#x6846;&#x7684;&#x8DDD;&#x79BB;&#xFF08;HTML5 &#x4E0D;&#x652F;&#x6301;&#x3002;&#xFF09;
    width:&#x8868;&#x683C;&#x7684;&#x5BBD;&#x5EA6;    &#xFF08;HTML5 &#x4E0D;&#x652F;&#x6301;&#x3002;&#xFF09;
</code></pre>
<p>&#x6D4F;&#x89C8;&#x5668;&#x8FD0;&#x884C;&#x6548;&#x679C;&#x5982;&#x4E0B;&#xFF1A;</p>
<p><img src="../../static/images/html/example/example16.png" alt="&#x6362;&#x884C;&#x7B26;&#x8FD0;&#x884C;&#x6548;&#x679C;"></p>
<h3 id="&#x8868;&#x683C;&#x4E2D;&#x5355;&#x5143;&#x683C;&#x8FDB;&#x884C;&#x5408;&#x5E76;">&#x8868;&#x683C;&#x4E2D;&#x5355;&#x5143;&#x683C;&#x8FDB;&#x884C;&#x5408;&#x5E76;</h3>
<p><strong>&#x5B9E;&#x4F8B;</strong>
&#x628A;&#x4E0B;&#x9762;&#x8868;&#x683C;&#x4E2D;&#x6570;&#x5B57;&#x4E3A;1&#x548C;2&#x7684;&#x5355;&#x5143;&#x683C;&#x8FDB;&#x884C;&#x5408;&#x5E76;&#xFF0C;&#x6570;&#x5B57;&#x4E3A;3&#x548C;6&#x7684;&#x5355;&#x5143;&#x683C;&#x8FDB;&#x884C;&#x5408;&#x5E76;&#x3002;
<img src="../../static/images/html/example/example16.png" alt="&#x6362;&#x884C;&#x7B26;&#x8FD0;&#x884C;&#x6548;&#x679C;"></p>
<pre><code>&lt;table border=&quot;1&quot; cellspacing=&quot;10&quot; cellpadding=&quot;10&quot;&gt;
    &lt;tr&gt;
        &lt;th&gt;Header&lt;/th&gt;
        &lt;th&gt;Header&lt;/th&gt;
        &lt;th&gt;Header&lt;/th&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td colspan=&quot;2&quot;&gt;1&lt;/td&gt;
        &lt;!--&lt;td&gt;2&lt;/td&gt;--&gt;
        &lt;td rowspan=&quot;2&quot;&gt;3&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;4&lt;/td&gt;
        &lt;td&gt;5&lt;/td&gt;
        &lt;!--&lt;td&gt;6&lt;/td&gt;--&gt;
    &lt;/tr&gt;
&lt;/table&gt;

&#x5C5E;&#x6027;&#x8BF4;&#x660E;&#xFF1A;
    colspan:&#x5217;&#x5408;&#x5E76;&#xFF0C;&#x6709;&#x51E0;&#x4E2A;&#x5355;&#x5143;&#x683C;&#x5408;&#x5E76;&#x503C;&#x5C31;&#x662F;&#x591A;&#x5C11;
    rowspan:&#x884C;&#x5408;&#x5E76;&#xFF0C;&#x6709;&#x51E0;&#x4E2A;&#x5355;&#x5143;&#x683C;&#x5408;&#x5E76;&#x503C;&#x5C31;&#x662F;&#x591A;&#x5C11;
</code></pre><p>&#x6D4F;&#x89C8;&#x5668;&#x8FD0;&#x884C;&#x6548;&#x679C;&#x5982;&#x4E0B;&#xFF1A;</p>
<p><img src="../../static/images/html/example/example19.png" alt="&#x6362;&#x884C;&#x7B26;&#x8FD0;&#x884C;&#x6548;&#x679C;"></p>
<blockquote>
<p>&#x5408;&#x5E76;&#x89E3;&#x6790;</p>
<p>&#x5217;&#x5408;&#x5E76;&#xFF1A;&#x6570;&#x5B57;&#x4E3A;1&#x548C;2&#x7684;&#x5355;&#x5143;&#x683C;&#x5206;&#x522B;&#x5728;&#x4E0D;&#x540C;&#x7684;&#x5217;&#x4E2D;&#x6240;&#x4EE5;&#x662F;&#x8FDB;&#x884C;&#x4E86;&#x5217;&#x548C;&#x5E76;&#xFF0C;&#x56E0;&#x4E3A;&#x53EA;&#x9700;&#x8981;&#x5408;&#x5E76;&#x4E24;&#x4E2A;&#x5355;&#x5143;&#x683C;&#x6240;&#x4EE5;colspan&#x7684;&#x503C;&#x4E3A;2&#xFF0C;
&#x5217;&#x5408;&#x5E76;&#x53EA;&#x9700;&#x8981;&#x5728;&#x6570;&#x5B57;&#x4E3A;1&#x7684;&#x5355;&#x5143;&#x683C;&#x4E2D;&#x6DFB;&#x52A0;&#x5C5E;&#x6027;colspan&#xFF0C;&#x7136;&#x540E;&#x628A;&#x6570;&#x5B57;&#x4E3A;2&#x7684;&#x5355;&#x5143;&#x683C;&#x5220;&#x9664;&#xFF0C;&#x5217;&#x5408;&#x5E76;&#x5C31;&#x5B8C;&#x6210;&#x4E86;&#x3002;</p>
<p>&#x884C;&#x5408;&#x5E76;&#xFF1A;&#x6570;&#x5B57;&#x4E3A;1&#x548C;2&#x7684;&#x5355;&#x5143;&#x683C;&#x5206;&#x522B;&#x5728;&#x4E0D;&#x540C;&#x7684;&#x884C;&#x4E2D;&#x6240;&#x4EE5;&#x662F;&#x8FDB;&#x884C;&#x4E86;&#x884C;&#x548C;&#x5E76;&#xFF0C;&#x56E0;&#x4E3A;&#x53EA;&#x9700;&#x8981;&#x5408;&#x5E76;&#x4E24;&#x4E2A;&#x5355;&#x5143;&#x683C;&#x6240;&#x4EE5;rowspan&#x7684;&#x503C;&#x4E3A;2&#xFF0C;
&#x884C;&#x5408;&#x5E76;&#x53EA;&#x9700;&#x8981;&#x5728;&#x6570;&#x5B57;&#x4E3A;3&#x7684;&#x5355;&#x5143;&#x683C;&#x4E2D;&#x6DFB;&#x52A0;&#x5C5E;&#x6027;rowspan&#xFF0C;&#x7136;&#x540E;&#x628A;&#x6570;&#x5B57;&#x4E3A;6&#x7684;&#x5355;&#x5143;&#x683C;&#x5220;&#x9664;&#xFF0C;&#x884C;&#x5408;&#x5E76;&#x5C31;&#x5B8C;&#x6210;&#x4E86;&#x3002;</p>
</blockquote>
<h2 id="&#x5185;&#x5D4C;&#x6846;&#x67B6;iframe&#x5143;&#x7D20;">&#x5185;&#x5D4C;&#x6846;&#x67B6;iframe&#x5143;&#x7D20;</h2>
<p>HTML&#x5185;&#x8054;&#x6846;&#x67B6;&#x5143;&#x7D20; <iframe> 表示嵌套的浏览上下文，有效地将另一个HTML页面嵌入到当前页面中。在HTML 4.01中，文档可能包含头部和正文，或头部和框架集，但不能包含正文和框架集。但是，<iframe>可以在正常的文档主体中使用。每个浏览上下文都有自己的会话历史记录和活动文档。包含嵌入内容的浏览上下文称为父浏览上下文。顶级浏览上下文（没有父级）通常是浏览器窗口。</iframe></iframe></p>
<pre><code class="lang-html"><span class="hljs-doctype">&lt;!DOCTYPE html&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-title">html</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-title">head</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">meta</span> <span class="hljs-attribute">charset</span>=<span class="hljs-value">&quot;UTF-8&quot;</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">title</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-title">title</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-title">head</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-title">body</span>&gt;</span>
        <span class="hljs-tag">&lt;<span class="hljs-title">iframe</span> <span class="hljs-attribute">src</span>=<span class="hljs-value">&quot;https://www.baidu.com&quot;</span> <span class="hljs-attribute">width</span>=<span class="hljs-value">&quot;100%&quot;</span> <span class="hljs-attribute">height</span>=<span class="hljs-value">&quot;300&quot;</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-title">iframe</span>&gt;</span>
    <span class="hljs-tag">&lt;/<span class="hljs-title">body</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-title">html</span>&gt;</span>

    &#x5C5E;&#x6027;&#x8BF4;&#x660E;&#xFF1A;
        width            &#x5BBD;&#x5EA6;
        height            &#x9AD8;&#x5EA6;
            &#x4EE5;CSS&#x50CF;&#x7D20;&#x683C;&#x5F0F;&#xFF0C;&#x6216;&#x50CF;&#x7D20;&#x683C;&#x5F0F;&#xFF0C;&#x6216;&#x767E;&#x5206;&#x6BD4;&#x683C;&#x5F0F;&#x6307;&#x5B9A;frame&#x7684;&#x9AD8;&#x5EA6;&#x3002;
        frameborder     &#x8FB9;&#x6846;
            &#x53D6;&#x503C;&#x4E3A;1&#x65F6;&#xFF08;&#x9ED8;&#x8BA4;&#x503C;&#xFF09;&#xFF0C;&#x544A;&#x8BC9;&#x6D4F;&#x89C8;&#x5668;&#x5728;&#x5F53;&#x524D;iframe&#x4E0E;&#x5176;&#x4ED6;iframe&#x4E4B;&#x95F4;&#x7ED8;&#x5236;&#x8FB9;&#x6846;&#xFF0C;&#x53D6;0&#x65F6;&#x5219;&#x65E0;&#x9700;&#x7ED8;&#x5236;&#x6B64;&#x8FB9;&#x6846;&#x3002;
</code></pre>
<p>&#x6D4F;&#x89C8;&#x5668;&#x8FD0;&#x884C;&#x6548;&#x679C;&#x5982;&#x4E0B;&#xFF1A;</p>
<p><img src="../../static/images/html/example/example17.png" alt="&#x6362;&#x884C;&#x7B26;&#x8FD0;&#x884C;&#x6548;&#x679C;"></p>

                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="../../md/html/lesson2.html" class="navigation navigation-prev " aria-label="Previous page: 图片音频视频"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="../../md/html/lesson4.html" class="navigation navigation-next " aria-label="Next page: 表单元素"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="../../gitbook/app.js"></script>

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/lunr.min.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/search.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-livereload/plugin.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"highlight":{},"search":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"livereload":{}};
    gitbook.start(config);
});
</script>

        
    </body>
    
</html>
